<%@ page session="true" %>
<%@ page contentType="text/html" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD 
XHTML 1.1//EN" "http://www.w3.org/TR/2001/REC-xhtml11-20010531/DTD/xhtml11-flat.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Language" content="English" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="robots" content="index, follow" />
        <link rel="stylesheet" type="text/css" media="screen" href="css/style.css" />
        <link rel="stylesheet" type="text/css" media="print" href="css/print.css" />
        <title>JAnalytics Index</title>
    </head>
    <body>
        <div id="container">
        
            <h1>
                JAnalytics Index
            </h1>
            
            <p>
                The JAnalytics library allows you to login to the Google Analytics service using your
                email and password. Before you begin, you will need to configure Example 1.                
            </p>
            <h2>Example 1: Raw JSP to XML</h2>
            <p>
                If you have not configured <a href="example1.jsp">Example 1</a> then please edit example1.jsp.
                This example streams a Google Analytics XML report directly from the JSP.
            </p>
            
            <h2>Example 2: Form with Post</h2>            
            <p>
                <a href="example2.jsp">Example 2</a> does not require configuration.
                This example requires you to enter your Google Analytics account name,
                password, start date, and end date.
            </p>
            
            <h2>Example 3: Form with Get</h2>            
            <p>
                <a href="example3.jsp">Example 3</a> does not require configuration.
                This example requires you to enter your Google Analytics account name,
                password, start date, and end date.               
            </p>

            <h2>Example 4: KML Tag (Fixed in JAnalytics Version 0.6)</h2>            
            <p>
                If you have not configured <a href="example4.jsp">Example 4</a> then please edit example4.jsp.
                In this example the JSP <code>&lt;janalytics:kml&gt;</code> tag is used
                to transform your Google Analytics Geo Map Overlay to a KML (Keyhole Markup Language) document.
                We've also mapped the <a href="example4.jsp">example4.jsp</a> servlet to
                <a href="geomapoverlay.kml">geomapoverlay.kml</a>.
            </p>
            <p>
                All this in only 4 lines in the JSP!
            </p>
            <p>
                &lt;%@ page session=&quot;true&quot;%&gt;<br>
                &lt;%@ taglib uri=&quot;janalytics&quot; prefix=&quot;janalytics&quot;%&gt;<br>
                &lt;%@ page contentType=&quot;text/xml&quot; %&gt;<br>
                &lt;janalytics:kml email=&quot;youraccount@gmail.com&quot; password=&quot;yourpassword&quot;
                /&gt; 
            </p>            
        </div>    
    </body>
</html>